package org.lease.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.lease.model.entity.ApartmentInfo;
import org.lease.model.vo.ApartmentDetailVo;
import org.lease.model.vo.ApartmentItemVo;
import org.lease.model.vo.ApartmentQueryVo;
import org.lease.model.vo.ApartmentSubmitVo;

import java.util.List;

public interface ApartmentInfoService extends IService<ApartmentInfo> {
    IPage<ApartmentItemVo> pageQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);

    ApartmentDetailVo getApartmentDetailById(Long id);

    void removeApartmentById(Long id);

    ApartmentItemVo selectApartmentItemVoById(Long apartmentId);
}
